package com.bright.ghj.overt;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"com.bright.ghj.common", "com.bright.ghj.user", "com.bright.ghj.overt"})
@EnableCaching
@EnableScheduling
@EnableTransactionManagement
public class GhjOvertApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(GhjOvertApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(GhjOvertApplication.class);
    }
}
